<%= render :file => 'designer_work_items/_new_in_work_item.html', :locals => { :stage => @stage, :type => @type} %>
<div id="tmp_stage_<%= @stage.id %>_type_<%= @type.id %>_designer_work_items" style="display:none;">
  <%= render :file => 'projects/designer_work_items_in_index.html', :locals => { :stage => @stage, :type => @type} %>
</div>
<script>
  $('stage_<%= @stage.id %>_type_<%= @type.id %>_designer_work_items').update($('tmp_stage_<%= @stage.id %>_type_<%= @type.id %>_designer_work_items').innerHTML);
  $('tmp_stage_<%= @stage.id %>_type_<%= @type.id %>_designer_work_items').remove();
</script>